package org.hotelsystem.hoteladminsystem.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.hotelsystem.hoteladminsystem.Pojo.Hotel;

import java.util.List;

@Mapper
public interface HotelMapper {


    @Select("SELECT * FROM hotel")
    List<Hotel> selectAllHotels();

    @Select("SELECT * FROM hotel WHERE id = #{id}")
    Hotel selectHotelById(int id);
}
